package com.isdepci.project.carbon.service.impl;

import com.isdepci.project.carbon.domain.BFossilFuelParameter;
import com.isdepci.project.carbon.mapper.BFossilFuelParameterMapper;
import com.isdepci.project.carbon.service.IBFossilFuelParameterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 化石燃料相关参数的推荐值Service业务层处理
 *
 * @author isdepci
 * @date 2025-03-29
 */
@Service
public class BFossilFuelParameterServiceImpl implements IBFossilFuelParameterService
{
    @Autowired
    private BFossilFuelParameterMapper bFossilFuelParameterMapper;

    /**
     * 查询化石燃料相关参数的推荐值
     */
    @Override
    public BFossilFuelParameter selectBFossilFuelParameterById(Long id)
    {
        return bFossilFuelParameterMapper.selectBFossilFuelParameterById(id);
    }

    /**
     * 查询化石燃料相关参数的推荐值列表
     */
    @Override
    public List<BFossilFuelParameter> selectBFossilFuelParameterList(BFossilFuelParameter bFossilFuelParameter)
    {
        return bFossilFuelParameterMapper.selectBFossilFuelParameterList(bFossilFuelParameter);
    }

    /**
     * 新增化石燃料相关参数的推荐值
     */
    @Override
    public int insertBFossilFuelParameter(BFossilFuelParameter bFossilFuelParameter)
    {
        return bFossilFuelParameterMapper.insertBFossilFuelParameter(bFossilFuelParameter);
    }

    /**
     * 修改化石燃料相关参数的推荐值
     */
    @Override
    public int updateBFossilFuelParameter(BFossilFuelParameter bFossilFuelParameter)
    {
        return bFossilFuelParameterMapper.updateBFossilFuelParameter(bFossilFuelParameter);
    }

    /**
     * 批量删除化石燃料相关参数的推荐值
     */
    @Override
    public int deleteBFossilFuelParameterByIds(Long[] ids)
    {
        return bFossilFuelParameterMapper.deleteBFossilFuelParameterByIds(ids);
    }

    /**
     * 删除化石燃料相关参数的推荐值信息
     */
    @Override
    public int deleteBFossilFuelParameterById(Long id)
    {
        return bFossilFuelParameterMapper.deleteBFossilFuelParameterById(id);
    }
}
